<?php


namespace app\demo\middleware;
class Detail
{
    //$request请求对象
    public function handle($request, \Closure $next)
    {
        $request->type = "detail";

        dump("detail");
        return $next($request);
    }

    //中间件结束调度
    public function end(\think\Response $response)
    {

    }
}